package com.yukino.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 *
 * @TableName project
 */
@TableName(value ="project")
@Data
public class Project implements Serializable {
    /**
     * 项目ID
     */
    @TableId(value = "project_id", type = IdType.AUTO)
    private Long project_id;

    /**
     * 项目名称
     */
    @TableField(value = "project_name")
    private String project_name;

    /**
     * 部门ID
     */
    @TableField(select = false)
    private Long dept_id;

    /**
     * 负责人
     */
    @TableField(value = "leader")
    private String leader;

    /**
     * 级别
     */
    @TableField(value = "level")
    private String level;

    /**
     * 经费
     */
    @TableField(value = "funds")
    private Integer funds;

    /**
     * 项目简介
     */
    @TableField(value = "profiles")
    private String profiles;

    /**
     * 项目成员
     */
    @TableField(select = false)
    private List<User> users;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableField(value = "is_deleted")
    @TableLogic
    private String is_deleted;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private LocalDateTime gmt_create;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private LocalDateTime gmt_modified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}